module.exports = {
  showIndex(req, res) {
    if (req.session && req.session.userInfo) {
      res.render('admin/index', {})
    } else {
      res.redirect(302, '/admin/login');
    }
  }
}